﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConferenceArranger.ConferenceComponent
{
    class Track
    {   
        /// <summary>
        /// Track includes a list of sessions
        /// </summary>

        List<Session> sessionList;
        
        public Track()
        {
            sessionList = new List<Session>();
        }

        public void AddSession(Session session, DateTime sessionTime)
        {
            session.SetDateTime(sessionTime);
            sessionList.Add(session);
        }

        public string ToString()
        {
            string myString = "";
            for (int i = 0; i < sessionList.Count; i++)
            {
                myString += sessionList[i].ToString() + "\r\n";
            }
            return myString;
        }
    }
}
